﻿@{
    ViewBag.Title = "Html辅助标签";
    Layout = "_Layout";
}
<h2>Html辅助标签</h2>
@using (Html.BeginForm("Submit", "Student", null, FormMethod.Post))
{
    <table class="table" style="margin:0 auto;width:600px;">
        <tr>
            <td>@Html.Label("NickName", "姓名：", htmlAttributes: new { @class = "label" })</td>
            <td>@Html.TextBox("NickName", "", htmlAttributes: new { @class = "textbox", placeholder = "请输入姓名" })</td>
        </tr>
        <tr>
            <td>@Html.Label("Account", "账户：", htmlAttributes: new { @class = "label" })</td>
            <td>@Html.TextBox("Account", "", htmlAttributes: new { @class = "textbox", placeholder = "请输入账户" })</td>
        </tr>
    </table>
}
